define(function(require, exports, module) {
	'use strict';
        
        var rk = require('rk');
        
        /**
        说明：
            该类是所有oa查询列表的父类。
        **/
        $.widget('rk.oaSearchCurtainCtrl', $.rk.oaCurtainCtrl, {
            options: {
            },
            _repositionList: function(){
                var me = this;
                var elem = me.element;

                var curtain = elem;
                var listbody = curtain.find("div.oa-tab-body");

                // listbody.css('height', 'calc(100% - 30px)');
                // if(!listbody.isScroll())
                // listbody.beScroll();
                listbody.css('height', 'auto');

                var o_h = curtain.find('.oa-curtain-body').innerHeight();
                var h_table = curtain.find('.oa-search-table').outerHeight(true);
                //curtain.find('.oa-search-content').css('height', (o_h-h_table-20)+'px');

                rk.onResize(elem).bind('handleGlobalResize', function(){
                    me._repositionList();
                })
            }
        });
    });